package com.fgs.common.utils;

import android.content.Context;

import com.xuexiang.xui.widget.dialog.materialdialog.MaterialDialog;

/**
 * @author fgs
 * @date 2021/6/21
 * @description
 **/
public class TipDialogUtil {
    public static void showTipDialog(Context context, String tip) {
        new MaterialDialog.Builder(context)
                .content(tip)
                .positiveText("知道了")
                .show();
    }

    public static void showTipDialog(Context context, String tip, String operateTip, MaterialDialog.SingleButtonCallback singleButtonCallback) {
        new MaterialDialog.Builder(context)
                .content(tip)
                .positiveText(operateTip)
                .onPositive(singleButtonCallback)
                .show();
    }
}
